package com.java.permission.common.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.java.permission.common.dao.entity.SysUser;
import com.java.permission.common.params.PageParams;
import com.java.permission.common.vo.UserIdAndNameVo;

import java.util.List;

/**
 * @author hu
 * @version 1.0
 * @date 2020/6/15 14:32
 * @description
 */
public interface SysOfficeUserDetailService {
    /**
     * 分页获取部门人员关系
     * @param pageParams
     * @param officeId
     * @param userName
     * @param roleId
     * @param realName
     * @return
     */
    IPage<SysUser> findPageOfficeUser(PageParams pageParams, String officeId, String userName, String roleId, String realName);

    /**
     * 保存部门人员关系
     * @param officeId
     * @param userIdAndNameVoList
     * @param operUserId
     */
    void save(String officeId, List<UserIdAndNameVo> userIdAndNameVoList, String operUserId);

    /**
     * 删除部门人员关系
     * @param id
     * @param operUserId
     */
    void delete(String id, String operUserId);
}
